        
{% extends "PATHomeBundle::base.html.twig" %}


{% block head %}
	{{ parent() }}
	<script src="{{ asset('bundles/pathome/js/search.js') }}"></script>
{% endblock head %}


{% block title %}{{ parent() }} - Index{% endblock %}


{% block body %}

    Voici la liste des produits :<br/>
    
	<form id="form_recherche" action="{{ path('pat_product_rechercher') }}" method="post">
		{{ form_widget(form) }}
		<input type="button" value="Rechercher" onClick="CategorySearch()">
	</form>
	
	<div id="resultats_recherche"> 
    	{% include 'PATProductBundle:Default:liste.html.twig' with {'product_list' : product_list}  %}
	</div>
	
{% endblock %}
